<%@ page language="java" contentType="text/html; charset=utf8"
    pageEncoding="utf8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html"; charset=utf-8">
<title>Insert title here</title>
</head>
<link rel="stylesheet" href="/hospital-system/bootstrap-5.3.0/css/bootstrap.css">

<body>
<div class="container mt-2">

<nav class="navbar navbar-dark bg-dark ">
  <span class="navbar-brand mb-auto h1 mr-auto my-10  navbar-nav-scroll">欢迎使用医院就诊系统</span>
</nav>
		<table class="table table-success table-striped">		
		  <thead class="text-center">
		 	<tr>
		 		<td>医生id</td>
			 	<td>医生姓名</td>
			 	<td>上班日期</td>
			 	<td>科室id</td>
			 	<td>科室名</td>
			 	<td colspan="2">操作</td>
		 	</tr>
		  </thead>
		  <tbody class="text-center">
		  	<c:forEach items="${checkDoctor}" var="pat"  >
		  	<tr>
		  		<td>${pat.did}</td>
			 	<td>${pat.dname}</td>	
			 	<td>${pat.rdate}</td>		 	
			 	<td>${pat.cid}</td>
			 	<td>${pat.cname}</td>
		  		<td><a href="jsp/insertbooked.jsp?dname=${pat.dname}">预约</a></td>
		  	</tr>
		  	</c:forEach>
		  </tbody>	 
		</table>
</body>
</html>